<!DOCTYPE html>
<html>
<head>
<title>{$site_name}</title>
<meta name="keywords" content="{$site_seo_keywords}" />
<meta name="description" content="{$site_seo_description}">

<tc_include file="Public:head" />
</head>

<body class="body-white" id="top">
	<tc_include file="Public:nav" />

		<div class="container tc-main">
                <div class="row">
                    <div class="span3">
	                    <tc_include file="Public:usernav"/>
                    </div>
                    <div class="span9">
                           <div class="tabs">
                               <ul class="nav nav-tabs">
                                   <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-comments-o"></i>任务列表</a></li>
                               </ul>
                               <div class="tab-content">
                                   <div class="tab-pane active" id="one">
                                   		
                                   		<table class="table table-bordered table-striped table-hover">
									    <thead>
									      <tr>
									       	 <th>#</th>
									        <th>任务标题</th>
									        <if condition="$types eq 1">
									        <th>位置</th>
									        <elseif condition="$types eq 2"/>
									        <th>活动方式</th>
									        </if>
									        <th width="150">开始时间</th>
									        <th>消费总积分</th>
									        <th>状态</th>
									        <th>粉丝总量</th>
									        <th>操作</th>
									      </tr>
									    </thead>
									    <tbody>
									  	<volist name="data" id="vo">
									  	<tr>
									  		<td>{$vo.tid}</td>
									  		<td>{$vo.title}</td>
									  		 <if condition="$types eq 1">
									  		<td>{$loc[$vo['loction']]}</td>
									  		 <elseif condition="$types eq 2"/>
									        <td>
									        	<if condition="$vo['taskact'] eq 1">
									        	分享
									        	<else />
									        	直发
									        	</if>
									        </td>
									        </if>
									  		<td>{$vo.starttime}</td>
									  		<td>{$vo.countmoney}</td>
									  		<td>{$status[$vo['status']]}</td>
									  		<td>{$vo.fsnum}</td>
									  	
									  		<td> 
									  			<if condition="$vo[status] eq 0">
									  			<span style="cursor:pointer"><a href="{:U('user/task/settleaccounts',array('tid'=>$vo['tid']))}">立即公布</a></span>
									  			<elseif condition="$vo[status] eq 1" />
									  				已派单
									  			<elseif condition="$vo[status] eq 2" />
									  				已完成
									  			<elseif condition="$vo[status] eq 3" />
									  				已取消		
									  			</if>
									  			<span><a href="{:U('user/TaskAd/taskinfo',array('tid'=>$vo['tid']))}">任务详情</a></span>
									  		 </td>
									  		
									  	</tr>
									   </volist>
									    </tbody>
									  </table>
                                   		

                                   		
                                   </div>
                                   
                                   <div class="pager">{$pager}</div>
                               </div>							
                           </div>
                    </div>
                </div>

		<tc_include file="Public:footer" />

	</div>
	<!-- /container -->

	<tc_include file="Public:scripts" />
</body>
</html>